package router

import (
	"github.com/gin-gonic/gin"
	"zg3/internal/api"
	"zg3/internal/middleware"
)

func Router(c *gin.Engine) {
	router := c.Group("v1")
	{
		UserRouter(router)
		FriendRouter(router)
		GroupRouter(router)
		VideoRouter(router)
		router.GET("chat", api.Chat)
		router.GET("groupChat", api.GroupChat)
		router.Use(middleware.Middleware())
		{
			router.POST("upload", api.Minio)
		}
	}
}
